﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
		
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		
		<title>淘宝信用管理系统 | 登陆</title>
		
		<!--                       CSS                       -->
	  
		<!-- Reset Stylesheet -->
		<link rel="stylesheet" href="Css/reset.css" type="text/css" media="screen" />
	  
		<!-- Main Stylesheet -->
		<link rel="stylesheet" href="Css/style.css" type="text/css" media="screen" />
		
		<!-- Invalid Stylesheet. This makes stuff look pretty. Remove it if you want the CSS completely valid -->
		<link rel="stylesheet" href="Css/invalid.css" type="text/css" media="screen" />	
		
		<!-- Colour Schemes
	  
		Default colour scheme is green. Uncomment prefered stylesheet to use it.
		
		<link rel="stylesheet" href="Css/blue.css" type="text/css" media="screen" />
		
		<link rel="stylesheet" href="Css/red.css" type="text/css" media="screen" />  
	 
		-->
		
		<!-- Internet Explorer Fixes Stylesheet -->
		
		<!--[if lte IE 7]>
			<link rel="stylesheet" href="Css/ie.css" type="text/css" media="screen" />
		<![endif]-->
		
		<!--                       Javascripts                       -->
	  
		<!-- jQuery -->
		<script type="text/javascript" src="Scripts/jquery-1.4.1-vsdoc.js"></script>
		
		<!-- jQuery Configuration -->
		<script type="text/javascript" src="Scripts/simpla.jquery.configuration.js"></script>
		
		<!-- Facebox jQuery Plugin -->
		<script type="text/javascript" src="Scripts/facebox.js"></script>
		
		<!-- jQuery WYSIWYG Plugin -->
		<script type="text/javascript" src="Scripts/jquery.wysiwyg.js"></script>
		
        <!--jQuery Cookie Plugin-->
        <script type="text/javascript" src="Scripts/jquery.cookie.js"></script>
		<!-- Internet Explorer .png-fix -->
		
		<!--[if IE 6]>
			<script type="text/javascript" src="Scripts/DD_belatedPNG_0.0.7a.js"></script>
			<script type="text/javascript">
				DD_belatedPNG.fix('.png_bg, img, li');
			</script>
		<![endif]-->

		<script type="text/javascript">
		    $(function () {
		        $("#btnLogin").click(function () {
		            var success = true;
		            if ($("#txtUserName").val() == "") {
		                $("#divMsg").text("请输入您的用户名");
		                success = false;
		            }
		            else if ($("#txtPassword").val() == "") {
		                $("#divMsg").text("请输入您的密码");
		                success = false;
		            }
		            if (!success) {
		                return false;
		            }
		            else if ($("#cbRememberMe").attr("checked")) {
		                $.cookie("UserName", $("#txtUserName").val());
		                $.cookie("Password", $("#txtPassword").val());
		            }
		        });
		        $("#txtUserName").blur(function () {
		            if ($("#txtUserName").val() == $.cookie("UserName")) {
		                $("#txtPassword").val($.cookie("Password"));
		            }
		        });
		        $("#txtUserName").change(function () {
		            $("#txtPassword").val("");
		        });
		    });
        </script>
	</head>
  
	<body id="login">
		
		<div id="login-wrapper" class="png_bg">
			<div id="login-top">
			
				<h1>Simpla Admin</h1>
				<!-- Logo (221px width) -->
				<a href="http://www.uimaker.com"><img id="logo" src="Images/logo.png" alt="Simpla Admin logo" /></a>
			</div> <!-- End #logn-top -->
			
			<div id="login-content">
				
				<form id="form1" runat="server">
				
					<div class="notification information png_bg">
						<div id="divMsg">
							在此输入您的用户名和密码
						</div>
					</div>
					
					<p>
						<label>您的用户名</label>
						<asp:TextBox ID="txtUserName" runat="server" CssClass="text-input"></asp:TextBox>
					</p>
					<div class="clear"></div>
					<p>
						<label>您的密码</label>
						<asp:TextBox ID="txtPassword" runat="server" CssClass="text-input" TextMode="Password"></asp:TextBox>
					</p>
					<div class="clear"></div>
					<p id="remember-password">
						<input type="checkbox" id="cbRememberMe" />记住我
					</p>
					<div class="clear"></div>
					<p>
                        <asp:Button ID="btnLogin" runat="server" CssClass="button" Text="登 陆" />
					    <asp:LinkButton ID="lbtnGoTaoBao" runat="server" CssClass="button" Text="淘宝验证" PostBackUrl="http://container.api.tbsandbox.com/container?appkey=12143070"></asp:LinkButton>
					</p>

				</form>
			</div> <!-- End #login-content -->
			
		</div> <!-- End #login-wrapper -->
  </body>
  </html>

